import Vue from 'vue'
import Router from 'vue-router'
import myindex from '@/components/myindex'
import mylogin from '@/components/mylogin'



Vue.use(Router)

var routes = [{
        path: '/',
        name: 'myindex',
        component: myindex
    },
    {
        path: '/login',
        name: 'login',
        component: mylogin
    }

]

export default new Router({
    routes: routes,
    mode: 'history' /*hash*/
})